package net.pinnoocle.playdao.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

/**
 * 订单表(Order)表实体类
 *
 * @author ye
 * @since 2021-11-01 14:43:26
 */
@SuppressWarnings("serial")
@Data
@TableName("orders")
public class Order extends Model<Order> {

    @TableId(type = IdType.UUID)
    private String orderId;
    //用户id
    private String userId;
    //用户组局id
    private String userGroupId;
    //剧本id
    private String scriptId;
    //店铺id
    private String shopId;
    //订单编号
    private String orderNo;
    //是否支付 0 未支付 1 已支付
    private Integer hasPay;
    //是否评价 0 未评价 1 评价
    private Integer hasEvaluate;
    //订单总金额
    private Double totalPrice;
    //优惠金额
    private Double discountPrice;
    //实际支付金额
    private Double payPrice;
    //定金
    private Double appointPrice;
    //支付实际
    private Date payTime;
    //微信单号
    private String transactionId;
    //内部单号
    private String outTradeNo;
    //用户优惠券id
    private String userCouponId;
    //主持人id
    private String masterId;
    //订单类型 0 线上订单 1线下订单
    private Integer orderType;
    //优惠方式
    private Integer discountWay;
    //支付方式
    private Integer payWay;
    //下单实际
    private Date createdTime;
}